package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@Entity
@Table(name = "t_yenlien_banner")
public class YenlienBanner extends BaseEntity {


    private String name;

    @ApiModelProperty(value = "序号", example = "1")
    private Integer sort;


    @ApiModelProperty(value = "产品服务/首页/项目案例等..", example = "首页")
    private String type;


    private String prodType;


    @ApiModelProperty(value = "banner对应的图片,多个用 ; 分割", example = "*.png")
    @Column(columnDefinition = "longtext")
    private String img;


    @ApiModelProperty(value = "轮播秒数(单位秒)", example = "5")
    private String second;


    @ApiModelProperty(value = "跳转链接, 站内跳转就是文章ID, 站外跳转就是 url", example = "www.baidu.com")
    private String target;

    @ApiModelProperty(value = "跳转模式, 1=站内, 2=站外, 3=无跳转", example = "1")
    private String model;



    @ApiModelProperty(value = "状态 1=启用 2=禁用", example = "1")
    private String state;


    @ApiModelProperty(value = "创建时间")
    private String createTime;


    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }


    public String getName() {
        return name;
    }

    public String getProdType() {
        return prodType;
    }

    public void setProdType(String prodType) {
        this.prodType = prodType;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }


    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getSecond() {
        return second;
    }

    public void setSecond(String second) {
        this.second = second;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public YenlienBanner() {
    }
}
